From: Ceph Packaging Team Date: Mon, 15 Dec 2025 12:18:10 +0000 (+0530) Subject: Link with -pthread instead of -lpthread to fix FTBFS on riscv64 X-Git-Tag: archive/raspbian/14.2.21-1+rpi1+deb11u2^2~16 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cf489bd9c3821d2f14eab3c45ba5ce4c7ed6016c;p=ceph.git Link with -pthread instead of -lpthread to fix FTBFS on riscv64 Forwarded: no Last-Update: 2020-03-01 Gbp-Pq: Name riscv64-link-pthread.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a483b201..3cfe2775a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules/") if(CMAKE_SYSTEM_NAME MATCHES "Linux") set(LINUX ON) + set(THREADS_PREFER_PTHREAD_FLAG ON) FIND_PACKAGE(Threads) elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") set(FREEBSD ON)